package com.ruoyi.order.station.qrcode.instance;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class OP11QRCode {
    //报文编号
    @S7Variable(byteOffset=0, bitOffset=0, type= S7Type.WORD)
    public Integer telegramNumber;

    //线号
    @S7Variable(byteOffset=2, bitOffset=0, type= S7Type.WORD)
    public Integer lineNo;

    //站号
    @S7Variable(byteOffset=4, bitOffset=0, type= S7Type.WORD)
    public Integer stationNo;

    //站号编号
    @S7Variable(byteOffset=6, bitOffset=0, type= S7Type.WORD)
    public Integer stationindex;

    //产品型号
    @S7Variable(byteOffset=8, arraySize=20, type= S7Type.BYTE)
    public byte[] typeNo;

    //驱动板追溯码
    @S7Variable(byteOffset=30, arraySize=80, type= S7Type.BYTE)
    public byte[] driverBoardMaterialNo;
}
